package com.tsd.core.openweixin.model.material;

import java.util.List;

/**
 * 素材管理之获取素材列表返回结果
 */
public class WxMaterialList {

    public final static String serverUrl = "https://api.weixin.qq.com/cgi-bin/material/batchget_material";
    List<WxMaterialItem> item;
    private String errcode;
    private String errmsg;
    private Integer total_count;
    private Integer item_count;

    public boolean isSuccess() {
        return getErrcode() == null || "-1".equals(getErrcode());
    }

    /**
     * success value '0'
     *
     * @return
     */
    public String getErrcode() {
        return errcode;
    }

    /**
     * @param errorCode
     */
    public void setErrcode(String errcode) {
        this.errcode = errcode;
    }

    /**
     * success value 'ok'
     *
     * @return
     */
    public String getErrmsg() {
        return errmsg;
    }

    /**
     * @param errorMessage
     */
    public void setErrmsg(String errmsg) {
        this.errmsg = errmsg;
    }


    public Integer getTotal_count() {
        return total_count;
    }

    public void setTotal_count(Integer total_count) {
        this.total_count = total_count;
    }

    public Integer getItem_count() {
        return item_count;
    }

    public void setItem_count(Integer item_count) {
        this.item_count = item_count;
    }

    public List<WxMaterialItem> getItem() {
        return item;
    }

    public void setItem(List<WxMaterialItem> item) {
        this.item = item;
    }


}
